package com.testing.page;

import com.testing.base.BasePageAction;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

import java.util.List;

public class LoginPage extends BasePageAction {
    public LoginPage(WebDriver driver) {
        super(driver);
    }

    public WebElement languageSelection() {
        return this.findElement("languageSelectionBox");
    }

    public WebElement simplifiedChinese() {
        return this.findElement("SChinese");
    }

    public WebElement userAccount() {
        return this.findElement("account");
    }

    public WebElement userPassword() {
        return this.findElement("password");
    }

    public WebElement loginButton() {
        return this.findElement("loginBtn");
    }

    public WebElement userInexstence(){
        return this.findElement("userInexstencePrompt");
    }

    public List<WebElement> emptyAccountPrompt(){
        return this.findElements("prompt");
    }
}
